angular.module('myApp', []).controller('home', function($scope,$http) {
    $http.get("service/order/allorders").then(function(response){
        $scope.names=response.data;
    });
}) ;
